Optimal. Leaf size=36 \[ \sqrt {x} \sin (x)-\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {3296, 3305, 3351} \[ \sqrt {x} \sin (x)-\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3296
Rule 3305
Rule 3351
Rubi steps
\begin {align*} \int \sqrt {x} \cos (x) \, dx &=\sqrt {x} \sin (x)-\frac {1}{2} \int \frac {\sin (x)}{\sqrt {x}} \, dx\\ &=\sqrt {x} \sin (x)-\operatorname {Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt {x}\right )\\ &=-\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {x}\right )+\sqrt {x} \sin (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.01, size = 48, normalized size = 1.33 \[ \frac {\sqrt {-i x} \Gamma \left (\frac {3}{2},-i x\right )+\sqrt {i x} \Gamma \left (\frac {3}{2},i x\right )}{2 \sqrt {x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 26, normalized size = 0.72 \[ -\frac {1}{2} \, \sqrt {2} \sqrt {\pi } \operatorname {S}\left (\frac {\sqrt {2} \sqrt {x}}{\sqrt {\pi }}\right ) + \sqrt {x} \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.44, size = 53, normalized size = 1.47 \[ -\left (\frac {1}{8} i - \frac {1}{8}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) + \left (\frac {1}{8} i + \frac {1}{8}\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) - \frac {1}{2} i \, \sqrt {x} e^{\left (i \, x\right )} + \frac {1}{2} i \, \sqrt {x} e^{\left (-i \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 27, normalized size = 0.75 \[ -\frac {\mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {x}}{\sqrt {\pi }}\right ) \sqrt {2}\, \sqrt {\pi }}{2}+\sin \relax (x ) \sqrt {x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 1.05, size = 67, normalized size = 1.86 \[ -\frac {1}{16} \, \sqrt {\pi } {\left (\left (i + 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) + \left (i - 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {x}\right ) - \left (i - 1\right ) \, \sqrt {2} \operatorname {erf}\left (\sqrt {-i} \sqrt {x}\right ) + \left (i + 1\right ) \, \sqrt {2} \operatorname {erf}\left (\left (-1\right )^{\frac {1}{4}} \sqrt {x}\right )\right )} + \sqrt {x} \sin \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 26, normalized size = 0.72 \[ \sqrt {x}\,\sin \relax (x)-\frac {\sqrt {2}\,\sqrt {\pi }\,\mathrm {S}\left (\frac {\sqrt {2}\,\sqrt {x}}{\sqrt {\pi }}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.85, size = 61, normalized size = 1.69 \[ \frac {3 \sqrt {x} \sin {\relax (x )} \Gamma \left (\frac {3}{4}\right )}{4 \Gamma \left (\frac {7}{4}\right )} - \frac {3 \sqrt {2} \sqrt {\pi } S\left (\frac {\sqrt {2} \sqrt {x}}{\sqrt {\pi }}\right ) \Gamma \left (\frac {3}{4}\right )}{8 \Gamma \left (\frac {7}{4}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________